FROM php:8.0.8-fpm-alpine

RUN apk update \ 
    && sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
    # && echo http://dl-cdn.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
    # && echo http://dl-cdn.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
    && apk add --no-cache ${PHPIZE_DEPS} \
    && docker-php-ext-install pdo_mysql \
    && pecl install redis-5.3.4 \
    && pecl install mongodb-1.10.0 \
    && docker-php-ext-enable redis mongodb \
    && apk del ${PHPIZE_DEPS}

